package com.logistics.modules.warehouseManagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.logistics.common.utils.PageUtils;
import com.logistics.modules.warehouseManagement.entity.RepositoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author HURRICANE
 * @email HURRICANE@nb.com
 * @date 2022-05-07 10:44:16
 */
public interface RepositoryService extends IService<RepositoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void insertRepositoryEntity(RepositoryEntity repository);

    /**
     * 选择所有仓库实体类
     *
     * @return {@link List}<{@link RepositoryEntity}>
     */
    List<RepositoryEntity> selectAll();

    /**
     * 删除存储库由ids
     *
     * @param asList 正如列表
     */
    void removeRepositoryByIds(List<Integer> asList);

    /**
     * 选择所有开始地址
     *
     * @param startAddress 起始地址
     * @return {@link List}<{@link RepositoryEntity}>
     */
    List<RepositoryEntity> selectAllByStartAddress(String startAddress);
}

